package chain.example.delivery.decorate;

import java.util.ArrayList;
import java.util.List;

public class ShopDeliveryInfo implements StateInfo {
    StateInfo stateInfo;

    public ShopDeliveryInfo(StateInfo stateInfo) {
        this.stateInfo = stateInfo;
    }


    @Override
    public List<String> getMessage(String orderId) {
        List<String> info = new ArrayList<>();
        info.add("卖家已发货");
        info.addAll(stateInfo.getMessage(null));
        return info;
    }
}
